package day0627;

public class Test5 {

    public static void main(String[] args) {
        System.out.println(judgeNum(371));
    }

    static boolean   judgeNum(int num){//153
        int b=num/100 %10;//获取百位
        int s=num/10 %10;//获取十位
        int g=num/1 %10;//获取个位
        if(b*b*b  + s*s*s + g*g*g  == num ){
            return true;
        }else{
            return  false;
        }
    }

}
